package com.liusr.template.mq.consumer;

import com.liusr.template.constant.MQQueueNames;
import com.liusr.template.vo.NotifyMsgSendVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author Liusr
 * @date 2023/3/14
 * @package com.liusr.template.mq.consumer
 * @Description: mq consumer消费者
 */
@Slf4j
@Component
public class NotifyMsgConsumer {

	@RabbitListener(queues = MQQueueNames.NOTIFY_MSG_QUEUE)
	public void msgSend(NotifyMsgSendVO vo) {
		System.out.println("消费者收到消息："+vo);
	}
}
